package events
{
	import model.Magazine;
	
	import flash.events.Event;
	
	public class SwitchViewEvent extends Event
	{
		// event types
		public static const TO_LIBRARY:String = "ToLibraryView";
		public static const TO_MAGAZINE:String = "ToMagazineView";
		
		private var _magazine:Magazine;
		public function get magazine():Magazine
		{	
			return _magazine;
		}
		
		public function SwitchViewEvent(type:String, mag:Magazine=null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			_magazine = mag;
		}
	}
}